xml.list  do
  for o in @event
  	@eventparticipant = Eventparticipant.find_all_by_event_idf(o.id)
    xml.event do
    @counter=1
  for e in @eventparticipant
  	if @counter == 1
    @p = Participant.find_by_id(e.participant_idf)
    xml.equipo1(@p.acronimo)
    xml.proporcion1(e.proportion)
    @counter=2
    else
    @p = Participant.find_by_id(e.participant_idf)
    xml.equipo2(@p.acronimo)
    xml.proporcion2(e.proportion)
    end
  end
    xml.fecha(o.eventstart.strftime("%Y-%m-%d"))
    xml.hora(o.eventstart.strftime("%H:%M"))
    xml.nombre(o.name)
    end
  end
end

